package com.tool.imagemonitor;


import org.come.model.ActiveBase;

public class ScriptTask {
	private int taskSetID;//脚本 任务
	private int sum;//剩余的完成次数
	private int npcID;//接取任务的npcID
	private int map;//npc地图id
	private int x;//NPC X
	private int y;//NPC Y
	private int total;//脚本任务总次数
	private int startTotal;
	private boolean start;
	private ActiveBase activeBase;
	private int ygRobotId;
	private int ygMapId;
	private int ygX;
	private int ygY;

	private int taskIdExt;

	public int getTaskIdExt() {
		return taskIdExt;
	}

	public void setTaskIdExt(int taskIdExt) {
		this.taskIdExt = taskIdExt;
	}

	public ScriptTask() {
	}
	public ScriptTask(String[] vs,int taskSetID) {
		// TODO Auto-generated constructor stub
		this.taskSetID=taskSetID;
		this.map=Integer.parseInt(vs[0]);
		this.x=Integer.parseInt(vs[1]);
		this.y=Integer.parseInt(vs[2]);
		this.npcID=Integer.parseInt(vs[3]);
		this.sum=Integer.parseInt(vs[4]);
	}
	public ScriptTask(String[] vs, int taskSetID,int sum) {
		this.taskSetID = taskSetID;
		map = Integer.parseInt(vs[0]);
		x = Integer.parseInt(vs[1]);
		y = Integer.parseInt(vs[2]);
		npcID = Integer.parseInt(vs[3]);
		this.sum = sum;
	}
	public int getTaskSetID() {
		return taskSetID;
	}
	public void setTaskSetID(int taskSetID) {
		this.taskSetID = taskSetID;
	}
	public int upSum() {
		return sum--;
	}
	public int getNpcID() {
		return npcID;
	}
	public void setNpcID(int npcID) {
		this.npcID = npcID;
	}
	public int getMap() {
		return map;
	}
	public void setMap(int map) {
		this.map = map;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getStartTotal() {
		return startTotal;
	}

	public void setStartTotal(int startTotal) {
		this.startTotal = startTotal;
	}

	public boolean isStart() {
		return start;
	}

	public void setStart(boolean start) {
		this.start = start;
	}

	public ActiveBase getActiveBase() {
		return activeBase;
	}

	public void setActiveBase(ActiveBase activeBase) {
		this.activeBase = activeBase;
	}

	public int getYgRobotId() {
		return ygRobotId;
	}

	public void setYgRobotId(int ygRobotId) {
		this.ygRobotId = ygRobotId;
	}

	public int getYgMapId() {
		return ygMapId;
	}

	public void setYgMapId(int ygMapId) {
		this.ygMapId = ygMapId;
	}

	public int getYgX() {
		return ygX;
	}

	public void setYgX(int ygX) {
		this.ygX = ygX;
	}

	public int getYgY() {
		return ygY;
	}

	public void setYgY(int ygY) {
		this.ygY = ygY;
	}
	public int getSum() {
		return sum;
	}

	public void setSum(int sum) {
		this.sum = sum;
	}
}
